package com.workManager.mapper;

import com.workManager.pojo.TdUserRole;
import com.workManager.pojo.TdUserRoleExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface TdUserRoleMapper {
    int countByExample(TdUserRoleExample example);

    int deleteByExample(TdUserRoleExample example);

    int deleteByPrimaryKey(Integer id);

    int deleteByUserId(Integer id);

    int deleteByRoleId(Integer id);

    int insert(TdUserRole record);

    int insertSelective(TdUserRole record);

    List<TdUserRole> selectByExample(TdUserRoleExample example);

    TdUserRole selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") TdUserRole record, @Param("example") TdUserRoleExample example);

    int updateByExample(@Param("record") TdUserRole record, @Param("example") TdUserRoleExample example);

    int updateByPrimaryKeySelective(TdUserRole record);

    int updateByPrimaryKey(TdUserRole record);
}